package com.hxzy.controller.admin.employee.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@Getter
@Setter
@ApiModel(value = "员工新增请求" )
public class EmployeeAddReq {


    /**
     * 登录账户
     */
    @ApiModelProperty(value = "登录账户" )
    @NotBlank(message = "登录账户不能为空")
    private String loginName;

    /**
     * 登录密码
     */
    @ApiModelProperty(value = "登录密码" )
    @NotBlank(message = "登录密码不能为空")
    @Length(min = 4, max = 20, message = "密码长度为4-20位")
    private String loginPwd;

    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码" )
    @NotBlank(message = "确认密码不能为空")
    private String loginPwdConfirm;

    /**
     * 性别(0 女 1 男)
     */
    @ApiModelProperty(value = "性别(0 女 1 男)" )
    @NotBlank(message = "性别不能为空")
    private String gender;

    /**
     * 状态（1停用，0正常）
     */
    @ApiModelProperty(value = "状态（1停用，0正常）" )
    @NotBlank(message = "状态不能为空")
    private String status;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像" )
    @NotBlank(message = "头像不能为空")
    private String avatar;
}
